﻿using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
using Zy.Shared.Entitys;

namespace Zy.Shared.Repository.Entitys
{

    /// <summary>
    /// 符合审计的实体
    /// </summary>
    public class AuditFullEntity: AuditEntity, IAuditFullEntity
    {
        /// <summary>
        /// 修改人
        /// </summary>
        [Column("modify_by")]
        [Comment("修改人")]
        public long? ModifyBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("modify_time")]
        [Comment("修改时间")]
        public DateTime? ModifyTime { get; set; }
    }

    /// <summary>
    /// 符合审计的实体
    /// </summary>
    public class AuditEntity : Entity, IAuditEntity
    {
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("create_time")]
        [Comment("创建时间")]
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [Column("create_by")]
        [Comment("创建人")]
        public long? CreateBy { get; set; }
    }
}
